Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.platform.TemplateSources.actions--actions

This contribution is part of XML component org.nuxeo.platform.TemplateSources.actions inside nuxeo-template-rendering-web-5.8.jar

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action id="CREATE_DOCUMENT">
          <filter-id>is_not_creating_template</filter-id>
        </action>
  • <action id="CREATE_DOCUMENT_TEMPLATE" label="command.create" link="#{templateActions.createTemplate}" order="0">
          <category>CREATE_DOCUMENT_FORM</category>
          <filter-id>is_creating_template</filter-id>
        </action>
  • <action enabled="true" id="TAB_TEMPLATE_PARAMS" label="tab.template.parameters" link="/incl/tabs/template_tab.xhtml" order="55">
          <category>VIEW_ACTION_LIST</category>
          <filter id="view_template_params">
            <rule grant="true">
              <permission>Write</permission>
              <facet>Template</facet>
            </rule>
          </filter>
        </action>
  • <action enabled="true" id="TAB_TEMPLATEBASED_PARAMS" label="tab.template.associated" link="/incl/tabs/templatebased_tab.xhtml" order="55">
          <category>VIEW_ACTION_LIST</category>
          <filter id="view_templatebased_params">
            <rule grant="true">
              <facet>TemplateBased</facet>
            </rule>
          </filter>
        </action>
  • <action icon="/icons/doctemplate.png" id="associateTemplate" label="action.template.associate" order="20" type="fancybox">
          <category>DOCUMENT_UPPER_ACTION</category>
          <properties>
            <property name="iframe">
              #{restHelper.getDocumentUrl(currentDocument,'associateTemplate',false)}
            </property>
            <property name="width">550</property>
            <property name="height">150</property>
            <property name="scrolling">no</property>
          </properties>
          <filter id="canAssociateTemplate">
            <rule grant="false">
              <facet>Template</facet>
              <facet>TemplateBased</facet>
              <facet>Folderish</facet>
            </rule>
          </filter>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <action id="CREATE_DOCUMENT">
      <filter-id>is_not_creating_template</filter-id>
    </action>

    <action id="CREATE_DOCUMENT_TEMPLATE" label="command.create" link="#{templateActions.createTemplate}" order="0">
      <category>CREATE_DOCUMENT_FORM</category>
      <filter-id>is_creating_template</filter-id>
    </action>

    <action enabled="true" id="TAB_TEMPLATE_PARAMS" label="tab.template.parameters" link="/incl/tabs/template_tab.xhtml" order="55">
      <category>VIEW_ACTION_LIST</category>
      <filter id="view_template_params">
        <rule grant="true">
          <permission>Write</permission>
          <facet>Template</facet>
        </rule>
      </filter>
    </action>

    <action enabled="true" id="TAB_TEMPLATEBASED_PARAMS" label="tab.template.associated" link="/incl/tabs/templatebased_tab.xhtml" order="55">
      <category>VIEW_ACTION_LIST</category>
      <filter id="view_templatebased_params">
        <rule grant="true">
          <facet>TemplateBased</facet>
        </rule>
      </filter>
    </action>

  <action icon="/icons/doctemplate.png" id="associateTemplate" label="action.template.associate" order="20" type="fancybox">
      <category>DOCUMENT_UPPER_ACTION</category>
      <properties>
        <property name="iframe">
          #{restHelper.getDocumentUrl(currentDocument,'associateTemplate',false)}
        </property>
        <property name="width">550</property>
        <property name="height">150</property>
        <property name="scrolling">no</property>
      </properties>
      <filter id="canAssociateTemplate">
        <rule grant="false">
          <facet>Template</facet>
          <facet>TemplateBased</facet>
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>

  </extension>